package com.kun.mapper;

import com.kun.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface RoleMapper {

    public int addRole(Role role);

    public int deleteRole(int id);

    public int updateRole(Role role);

    public List<Role> selectAllRoles(Map map);

}
